<!DOCTYPE html>
<html ng-app="mainApp">
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>金山安全云文档版本管理</title>
    <link rel="icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

	<style type="text/css">
p{margin:20px 0px 20px 0px;font-family:宋体;}
    .regheader{height:72px;position:relative;width:100%;margin:0 auto; background:#eff4f8;margin-bottom: 50px;}
    .contentforg{height:520px;margin-top:20px; width:100%;}
    .regright_text{position:absolute;right:0px; top:27px;}
    .headblue{color:#4E96FD;margin-right:40px;cursor:pointer;font-weight: bold; font-size:14px;}
    .headblue a{color:#4E96FD; text-decoration: none; }
    .headblue .wcolor{color:#FFFFFF;}
	.footer{width:1000px;margin:0 auto;margin-bottom:30px;width:1000px;height:40px;line-height:40px;color:#c6c2c2;text-align:center;font-size:12px;}
	.footer a{color:#c6c2c2;text-decoration:none;font-size:12px;}
.footer a:hover{color:#3890cd;font-size:12px;}
</style>
</head>

<body>
	<!--[if lte IE 8]>
		<script type="text/javascript">
			window.lte_IE_8 = true;
		</script>
	<![endif]-->
	<!--[if IE]>
		<span ng-init="isIE = true"></span>
	<![endif]-->
<div class="regheader">
    <div style="width:1200px; height:100%; margin:0 auto; position:relative;">
        <img src="/img/log_logo.png" class="logo" alt="TimeOn-云文档" title="TimeOn-云文档"  width="142" height="46"/>
        <div class="regright_text">
                <span class="headblue">
                    <?php echo anchor('/version/uploadfile', '版本信息管理'); ?>
                </span>
			<span class="headblue"><?php echo anchor('/version', '版本信息接口'); ?></span>
			<span class="headblue"><a href="http://192.168.221.95/login.html" target="_blank">WEB DocDisk95</a></span>
            <span class="headblue"><a href='http://192.168.224.213/login.html' target="_blank">WEB DocDisk213</a></span>
        </div>
    </div>
</div>	
<div style="width:900px;margin:10px auto;background-color:#7EC0EE;padding:50px 50px 50px 80px;">
   <h1>DOC DISK VERSION INTERFACE</h1>
	<h3>产品关键字 type 说明：all, web, window, android, iphone, ipad</h3>
   <h3>接口1. get_newversion()</h3>
<p>
	param: none<br>
	return:{'result':1,'list':['android':{'modify_date':'2017-04-03 00:00:00','size':'45M','version':'1.2.1','desc':'Android版','url':''},'web':{}...]}
	说明：1 为请求数据成功。参数type: "all" 值为所有产品。
</p>
   <h3>接口2. get_history($type) </h3>
   <p>
	   param:type, [all/web]<br>
	   all - reutrn: {'result':1,'list':['desc':'百度网盘PC版 ','version':'1.2.1','modify_date':'2017-04-01 00:00:00','content':'1.aaaa.===2.bbb.']}<br>
	   window - return: {'result':1,'list':['desc':'百度网盘PC版 ','version':'1.2.1','modify_date':'2017-04-01 00:00:00','content':'1.aaaa.===2.bbb.'],}
   </p>
   <h3>接口3. check_version($type,$current_version)</h3>
<p>
	param:type, [android]<br>
	param:current_version, [1.0.1]<br>
	return 有最新版本：{'result':1,'url':'http://donwloadlink','version'='1.0.2'} <br>
	return 没有最新版本： {result:1,'url':'','version'=''}<br>
	url:http://version.com/index.php/version/check_version?type=android&current_version=123
</p>

	<p>
	<h3>接口4：get_downlink()</h3>
		param:null<br>
		return {'windowurl':'link','androidurl':'link','iosurl':'link'}
	</p>

	<p>
	<h3>接口：图片验证码：get_codepic</h3>
		url: http://version.com/index.php/version/get_codepic
	</p>

	<p>
	<h3>接口：发送验证码</h3>
		param: phone,code <br>
		url: http://version.com/index.php/version/checkMsg
	</p>

	<p>
	<h3>获取上专插件新版本连接 get_kislink</h3>
		param: callback<br>
		url: http://t.ejinshan.net:10088/index.php/version/get_kislink<br>
		return true: callback({"result":1,"url":"http://t.ejinshan.net/publish/kisupload/KisUploadCtrl.cab#version=1.0.0.1"})<br>
		return false:{'result':0,'url':''}

	</p>
</div>
<div class="footer">
    @2017 北京金山安全 All Rights Reserved <!-- |  -->
    <!-- <a href="" target="_blank">服务协议</a> | 
    <a href="" target="_blank">权利声明</a> | 
    <a href="" target="_blank">版本更新</a> | 
    <a href="" target="_blank">帮助中心</a> | 
    <a href="" target="_blank">问题反馈</a> | 
    <a href="" target="_blank">版权投诉</a> -->
</div>
</body>
</html>